package com.andyou.modules.content.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.andyou.common.persistence.Page;
import com.andyou.common.service.CrudService;
import com.andyou.modules.content.entity.ContentStatAll;
import com.andyou.modules.content.dao.ContentStatAllDao;

/**
 * 统计汇总管理（content_stat_all）Service
 * @author lgx
 * @version 2020-03-11
 */
@Service
@Transactional(readOnly = true)
public class ContentStatAllService extends CrudService<ContentStatAllDao, ContentStatAll> {

	public ContentStatAll get(String id) {
		return super.get(id);
	}
	
	public List<ContentStatAll> findList(ContentStatAll contentStatAll) {
		return super.findList(contentStatAll);
	}
	
	public Page<ContentStatAll> findPage(Page<ContentStatAll> page, ContentStatAll contentStatAll) {
		return super.findPage(page, contentStatAll);
	}
	
	@Transactional(readOnly = false)
	public int save(ContentStatAll contentStatAll) {
		return super.save(contentStatAll);
	}
	
	@Transactional(readOnly = false)
	public void delete(ContentStatAll contentStatAll) {
		super.delete(contentStatAll);
	}
	
	
    @Transactional(readOnly = false)
	public void batchDelete(List<String> idList) {
		ContentStatAll contentStatAll = null;
		for (String id : idList) {
			contentStatAll = new ContentStatAll();
			contentStatAll.setId(id);
			super.delete(contentStatAll);
		}
	}
}